package gui;


import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;

/**
 * 
 * creating table
 *
 */
public class MyTable extends JFrame 
{
	 public MyTable(Object[][] rowData,Object[] columnNames) 
	 {	
		    JTable table = new JTable(rowData, columnNames);

		    JScrollPane scrollPane = new JScrollPane(table);
		    this.add(scrollPane, BorderLayout.CENTER);
		//    this.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
		    this.setSize(300, 150);
		    this.setVisible(true);

	 }
	

}
